package com.liugui.basicsgrammar;

/**
 * @ClassName: RelationalOperation
 * @Author: liugui
 * @Date: 2020-10-17 23:28
 **/
public class RelationalOperation {
    public static void main(String[] args){
        int a=3,b=5;
        System.out.println("a == b = " + (a == b)); //false
        System.out.println("a != b = " + (a != b)); //true
        System.out.println("a > b = " + (a > b)); // false
        System.out.println("a < b = " + (a < b)); // true
        System.out.println("a >= b = " + (a >= b)); // false
        System.out.println("a <= b = " + (a <= b)); // true
        System.out.println("a > b ? a : b = " + (a > b ? a : b)); // b

        //引用：Java 中一切都是对象，但操作的标识符实际是对象的一个引用。
    }
}
